package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.Warehouse;
import org.example.erp.domain.WarehouseArea;
import org.example.erp.service.WarehouseAreaService;
import org.example.erp.mapper.WarehouseAreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86180
* @description 针对表【warehouse_area(库区管理表)】的数据库操作Service实现
* @createDate 2024-11-25 15:59:19
*/
@Service
public class WarehouseAreaServiceImpl extends ServiceImpl<WarehouseAreaMapper, WarehouseArea>
    implements WarehouseAreaService{
    @Autowired
    private WarehouseAreaMapper warehouseAreaMapper;

    public IPage<WarehouseArea> findwarehousearea(Integer currentPage,
                                              Integer pageSize,
                                              Integer warehouseId,
                                              String warehouseAreaName

    ){
        Page<WarehouseArea> page=new Page<>(currentPage,pageSize);
        return warehouseAreaMapper.findwarehousearea(page,warehouseId,warehouseAreaName);
    }

}




